package cn.ibizlab.odoo.core.odoo_crm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_crm.domain.Crm_lead_lost;
import cn.ibizlab.odoo.core.odoo_crm.filter.Crm_lead_lostSearchContext;

/**
 * 实体[Crm_lead_lost] 服务对象接口
 */

public interface ICrm_lead_lostService{
     void updateBatch(List<Crm_lead_lost> crm_lead_losts, int batchSize) ;
     boolean remove(Integer id) ;
     boolean update(Crm_lead_lost crm_lead_lost) ;
     Crm_lead_lost get(Integer id) ;
     Crm_lead_lost get(Crm_lead_lost crm_lead_lost) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Crm_lead_lost crm_lead_lost) ;
     void createBatch(List<Crm_lead_lost> crm_lead_losts, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Crm_lead_lost> searchDefault(Crm_lead_lostSearchContext context) ;

    /**
     * 根据丢单原因查询
     */
     Page<Crm_lead_lost> selectByOdoo_lost_reason(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_lead_lost> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_lead_lost> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Crm_lead_lost convert2Domain(cn.ibizlab.odoo.core.client.model.Icrm_lead_lost model ,Crm_lead_lost domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Icrm_lead_lost convert2Model(Crm_lead_lost domain , cn.ibizlab.odoo.core.client.model.Icrm_lead_lost model);

}
